package com.system.Excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@ColumnWidth(25)
@HeadRowHeight(20)
@ContentRowHeight(18)
public class RoleExcel implements Serializable {

    private static final long serialVersionUID = -1616981997913234630L;

    @ColumnWidth(30)
    @ExcelProperty("编号")
    private String id;

    @ColumnWidth(30)
    @ExcelProperty("角色名称")
    private String name;

    @ColumnWidth(30)
    @ExcelProperty("角色描述")
    private String desc;

    @ColumnWidth(50)
    @ExcelProperty("创建时间")
    @DateTimeFormat("yyyy年MM月dd日HH时mm分ss秒")
    private Date createTime;

}
